Ext.onReady(function() {
	Ext.QuickTips.init();

	
	Ext.fly(document.body).on('contextmenu', function(e, target) {
		e.preventDefault();
	});

	var taggerpanel = new TaxonTagger.taggerpanel();
	var tabpanel = new TaxonTagger.gridpanel({
			region: 'east'
		,	split: true
		,	width: 400
	});

	var viewport = new Ext.Viewport({
			layout: 'fit'
		,	id: 'viewport'
		,	items: [{
					region: 'center'
				,	border: false
				,	title: 'Taxon Tagger'
				,	layout: 'border'
				,	items: [taggerpanel, tabpanel]
			}]
	});

});